// store.js
mutations: {
  WEBSOCKET_INIT(state, url) {
    state.socketTask = uni.connectSocket({ url })
  }
}